﻿<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<fmt:setBundle basename="ApplicationMessage" />
<fmt:setLocale value="zh_CN" />

<link href="${ctx.resource}/css/component/coverupload.css" rel="stylesheet">

<div class="modal-dialog x-modal-dialog" style="width:600px; margin-top: 150px;">

  <div class="modal-content">

    <div class="modal-header x-breadcrumb no-bottom-border clearfix">

      <h2><i class="glyphicon glyphicon-fire"></i>&nbsp;&nbsp;<span>课件详情&nbsp;-&nbsp;新添动作</span></h2>

      <button type="button" class="close" data-dismiss="modal">&times;</button>

    </div>

    <form class="form-horizontal" method="POST" action="${ctx.host}/year-rounds/${courseRound.id}/schedules/1/actions" data-validate="true">
      
      <input type="hidden" name="type" value="${type}">
      
      <div class="modal-body">
        
        <div class="form-group x-form-group">
          <label class="col-xs-4 control-label">名称</label>
          <div class="pull-left col-xs-7">
            <input type="text" name="name" value="" style="width: 200px;" class="form-control" data-validate="required">
          </div>
        </div>
        
        <div class="form-group x-form-group">
          <label class="col-xs-4 control-label">时间</label>
          <div class="pull-left col-xs-7">
            <div class="input-group">
            	<input type="text" name="otherCost" class="form-control" value="15" style="width: 140px;" data-validate="required">
            	<div class="pull-right" style="width: 60px;">
            	  <select name="time" class="select2 form-control">
		            <option value="0"selected>秒</option>
		            <option value="1" >分</option>
		            <option value="2">时</option>
                 </select>
            	</div>
            </div>
          </div>
        </div>
        
        <div class="form-group x-form-group">
          <label class="col-xs-4 control-label">次数</label>
          <div class="pull-left col-xs-7">
            <div class="input-group">
            	<input type="text" name="otherCost" class="form-control" value="3" style="width: 140px;" data-validate="required">
            	<div class="input-group-addon" style="width: 60px;">次</div>
            </div>
          </div>
        </div>
        
      </div>

      <div class="modal-footer">
        <button type="submit" class="btn btn-success btn-shadow btn-shadow-success x-btn">确定</button>&nbsp;&nbsp;&nbsp;&nbsp;
        <button type="button" class="btn btn-default btn-shadow btn-shadow-default x-btn" data-dismiss="modal">取消</button>
      </div>
    </form>

  </div>
  
   <script type="text/javascript">

    $(document).ready(function(){

     $('select[name="time"]').select2({
        placeholder : '请选择器材',
        minimumResultsForSearch : 0,
        allowClear : true
    });
     
     
    })

  </script>

</div>